package com.xunlai.infra.permission.manager.web.vo.department;

import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author liang
 * @date 12/11/22 9:25 PM
 */
@Data
public class CreateDepartmentReqVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1809785170336665733L;

    /**
     * 部门名称
     */
    @NotEmpty(message = "部门名称不能为空",groups = {ValidCreateDepartmentGroup.class})
    private String departName;

    /**
     * 部门编码
     */
    @NotEmpty(message = "部门编码不能为空",groups = {ValidCreateDepartmentGroup.class})
    private String departCode;

    private Boolean isCompany;

    /**
     * 部门负责人
     */
    private Long manager;

    /**
     * 显示排序
     */
    private Integer sort;

    /**
     * 父部门ID
     */
    private Long parentId;

    public interface ValidCreateDepartmentGroup{

    }
}
